//
//  YZMRedPacketModel.m
//  YZMicroStock
//
//  Created by apple on 17/5/10.
//  Copyright © 2017年 cqjr. All rights reserved.
//

#import "YZMRedPacketModel.h"
#import "YZMHomeBannerModel.h"

@implementation YZMRedPacketModel

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    
    return @{
             @"activityId": @"id",
             @"name":@"name",
             @"redPacketdescription": @"description",
             @"value":@"value",
             @"title": @"title",
             @"awardLogId":@"awardLogId",
             @"status": @"status",
             };
}

- (void)setNilValueForKey:(NSString *)key {
    
}

- (instancetype)initWithDictionary:(NSDictionary *)dictionaryValue error:(NSError *__autoreleasing *)error {
    
    if (self = [super initWithDictionary:dictionaryValue error:error]) {
        
        if ([self.title isEqualToString:@"ZCHB"]) {
            
            self.pageName = @"yztz://ycl.yztz.com/register";
        } else if ([self.title isEqualToString:@"SCCZ"]) {
            
            self.pageName = @"yztz://ycl.yztz.com/recharge";
        } else if ([self.title isEqualToString:@"SMRZ"]) {
            
            self.pageName = @"yztz://ycl.yztz.com/realcert";
        } else if ([self.title isEqualToString:@"MNJY"]) {
            
            self.pageName = @"yztz://ycl.yztz.com/simtrade";
        } else if ([self.title isEqualToString:@"SPJY"]) {
            
            self.pageName = @"yztz://ycl.yztz.com/trade";
        }
    }
    
    return self;
}

@end
